#pragma once
#include "BindingHeader.hpp"

void Bind_FrameWindow(lua_State* l)
{
	using namespace luabind;
	using namespace CEGUI;
	module(l,"Cegui")
		[
			class_<FrameWindow,Window>("FrameWindow")			
			.property("initialiseComponents",&FrameWindow::initialiseComponents)
			.property("SizingEnabled",&FrameWindow::isSizingEnabled,&FrameWindow::setSizingEnabled)
			.property("FrameEnabled",&FrameWindow::isFrameEnabled,&FrameWindow::setFrameEnabled)
			.property("TitleBarEnabled",&FrameWindow::isTitleBarEnabled,&FrameWindow::setTitleBarEnabled)
			.property("CloseButtonEnabled",&FrameWindow::isCloseButtonEnabled,&FrameWindow::setCloseButtonEnabled)
			.property("RollupEnabled",&FrameWindow::isRollupEnabled,&FrameWindow::setRollupEnabled)
			.property("isRolledup",&FrameWindow::isRolledup)
			.property("SizingBorderThickness",&FrameWindow::getSizingBorderThickness,&FrameWindow::setSizingBorderThickness)
			.def("toggleRollup",&FrameWindow::toggleRollup)
			.def("offsetPixelPosition",&FrameWindow::offsetPixelPosition)
			.def("DragMovingEnabled",&FrameWindow::isDragMovingEnabled,&FrameWindow::setDragMovingEnabled)
			.def("isHit",&FrameWindow::isHit)
			.property("Titlebar",&FrameWindow::getTitlebar)
			.property("CloseButton",&FrameWindow::getCloseButton)
			.enum_("SizingLocation")
			[
				value("SizingNone",FrameWindow::SizingNone),
				value("SizingTopLeft",FrameWindow::SizingTopLeft),
				value("SizingTopRight",FrameWindow::SizingTopRight),
				value("SizingBottomLeft",FrameWindow::SizingBottomLeft),
				value("SizingBottomRight",FrameWindow::SizingBottomRight),
				value("SizingTop",FrameWindow::SizingTop),
				value("SizingLeft",FrameWindow::SizingLeft),
				value("SizingBottom",FrameWindow::SizingBottom),
				value("SizingRight",FrameWindow::SizingRight)
			]
			.CASTER(Window,FrameWindow)
		];
}